#!/bin/bash

# This script installs the necessary OpenGL libraries for MuJoCo
echo "Installing OpenGL dependencies for MuJoCo..."

# Update package lists
sudo apt-get update

# Install Mesa OpenGL libraries
sudo apt-get install -y \
    libgl1-mesa-glx \
    libgl1-mesa-dri \
    mesa-utils \
    libosmesa6-dev \
    libglfw3 \
    libglew-dev

# Install additional dependencies that might be needed
sudo apt-get install -y \
    xvfb \
    patchelf

echo "Installation complete!"
echo "You can now run MuJoCo with: python mujoco/mujoco_whole_body.py"
